package com.feifan.monthhelper.bean.db;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.Ignore;
import android.arch.persistence.room.PrimaryKey;
import android.arch.persistence.room.TypeConverters;

import com.feifan.monthhelper.db.conventer.DateConverter;
import com.feifan.monthhelper.db.conventer.StringListConventer;

import java.util.Date;
import java.util.List;

@Entity(tableName = "love_protect")
@TypeConverters({StringListConventer.class, DateConverter.class})
public class LoveProtectBean {
    @PrimaryKey
    public Date date;
    public List<String> protects;

    @Ignore
    public LoveProtectBean(Date date, List<String> protects) {
        this.date = date;
        this.protects = protects;
    }

    public LoveProtectBean() {
    }
}
